package com.yl.pattern.behavioralmodel.visitor;

/**
 * @Author 小羊
 * @Date 1/11/2024下午 4:50
 * @ClassName Owner
 * @Description 具体访问者角色类
 */
public class Owner implements Person{
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");

    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗");
    }
}
